        <?php
       $themeNameUsed = $_GET['themeName'];
        echo "your theme name: ".$themeNameUsed;
        echo "file created:" . $myFile;

        $myFile = "" . $themeNameUsed . ".info";
        $newThemeName = $themeNameUsed;
        $fh = fopen($myFile, 'w') or die("can't open file");
        $stringData = "
        ; $Id$
        name = $newThemeName
        core = 6.x
        
        engine = phptemplate
        regions[left] = Left sidebar
        ; We do not have a right sidebar.
        ; regions[right] = Right sidebar
        regions[content] = Content
        regions[header] = Header
        regions[footer] = Footer";
       
       $newThemeFolder = ('' . $themeNameUsed . '_drupal-theme');
       mkdir($newThemeFolder);
        fwrite($fh, $stringData);
        fclose($fh);





       
        ?>

        
        
        